package com.tensquare.problem.client;

import com.tensquare.problem.client.impl.LabelClientimpl;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value="tensquare-base",fallback=LabelClientimpl.class)
public interface LabelClient {
    @RequestMapping(value="/label/{id}", method = RequestMethod.GET)
    public Result findById(@PathVariable("id") String id);

    @RequestMapping(value="/label/findLabelAll", method = RequestMethod.GET)
    public Result findLabelAll();

    @RequestMapping(value = "/label/addFans/{id}",method= RequestMethod.PUT)
    Result addFans(@PathVariable("id")String id);
}
